<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/9
 * Time: 18:12
 */

namespace api\flower\model;
use think\Model;

class FlowerConfigModel extends Model
{
    /**
     * $knows
     * 转换富文本格式
     */
    protected function getKnowsAttr($knows){
        if(!empty($knows)){
            return htmlspecialchars_decode($knows);
        }else{
            return $knows;
        }
    }
    /**
     * $knows
     * 转换富文本格式
     */
    protected function getServiceAttr($service){
        if(!empty($service)){
            return htmlspecialchars_decode($service);
        }else{
            return $service;
        }
    }
}